#!/bin/bash
if [ "$(whoami)" == "root" ]
then
    apt-get install locales -y;
    update-locale "LANG=en_US.UTF-8";
    cp /etc/locale.gen /etc/locale.gen.bak;
    sudo sh -c 'echo "en_US.UTF-8 UTF-8\nzh_CN.UTF-8 UTF-8" >/etc/locale.gen';
    locale-gen;
    dpkg-reconfigure --frontend noninteractive locales;
fi